﻿namespace GIMS.Def.Arguments
{
    public enum AppendDirection
    {
        horizontal,
        vertical
    }

    public class AppendArgument : Argument
    {
        private AppendDirection appendDirection;

        public AppendArgument()
        {
            name = "Append Argument";
            type = Flags.ArgumentType.append;
            appendDirection=AppendDirection.vertical; //defaultwert
        }

        public AppendDirection AppendDirection
        {
            get { return appendDirection; }
            set
            {
                appendDirection = value;
                OnPropertyChanged("AppendDirection");
            }
        }

        public override string CreateScriptPart()
        {
            if (appendDirection == AppendDirection.horizontal)
            {
                return "+";
            }
            else
            {
                return "-";
            }
        }
    }
}
